// 字符串和数组
let a = "1" + [, , ,]
console.log(a);

let b = "1" + [2, 3, 1, '5']
for (const i of b) {
  console.log(i)
}

let c = [1, 3, '1']
console.log(
  c[1] + 2,
  c[2] + 1
);
// 字符串和函数
let d = '1' + function uu() { var a = 1 }
console.log(d)
// 字符串和对象
let e = '1' + {}
console.log(e)
let f = '1' + { a: 1 }
console.log(f)
// 数组和数字呢 =====>转换为字符串，所以数组和其他相加类似字符串相加
let g = 1 + [2, 4] + 2
console.log(g);



// 小试牛刀
console.log([1] + [2]);
console.log([] + {});
console.log({} + []);
console.log(function a() { var a = 1 } + {});
console.log([1, 2] + function a() { var a = 1 });

